/*
 * 用户列表
 */
define(function(require, exports, module) {
	// var form = require("common/umei.form");
	// var umei_dialog = require("common/umei.dialog");
	require("common/umei.dev");
	umei.initForm({
		formObj : $("#loginform"),
		autocommit : "true",
		commiturl : "ajaxlogin.do",
		fun : function(response) {
			umei.tipMsg({
				type : "success",
				content : "登陆成功",
				timeout : 1000,
				fun : function() {
					document.location.href = "home.do";
				}
			})
		},
		type : "inline"
	});

	$(function() {
		$("#refreshCode").click(function() {
			refreshCode();
		});
	})

	function refreshCode() {
		$("#refreshCode").find("img").attr("src", "verifyCode.do?" + new Date().getTime());
	}
});
